Running code while we’re sleeping

Introduction to GitHub Actions for R users
R-Ladies Abuja, Nigeria

Beatriz Milz

Beatriz Milz 🇧🇷

  • Contact

  • About Bea

    • R-Ladies São Paulo Co-organizer

    • Teacher at Curso-R

    • Tidyverse instructor certified by RStudio

What powers GitHub Actions give us?

  • Running code while we’re sleeping!

Run arbitrary R scripts

  • Scrape data from the internet

  • Run reports with RMarkdown or Quarto

  • Send emails

  • Save results

  • Deploy Shiny Apps.

  • .. And so on! Depends on what are your skills in R.

Package development

  • Run devtools::check()

  • Run tests

  • Build and update documentation and website

Git and GitHub

Git

  • Git is a Version Control System (VCS).

  • It is able to store the change history of all files inside a folder, which we call a repository.

  • It becomes important as your work is collaborative.

  • Git is software that you can install on your computer.

GitHub

  • GitHub is a service where you store and share Git repositories.

  • Used by millions of people in open or closed source projects.

  • Useful for collaborating with other programmers on data science projects.

  • There are alternatives such as GitLab and BitBucket.

  • GitHub is a website that you can access on the internet.

GitHub Actions

TODO! Adapt examples from:

https://curso-r.github.io/main-pacotes/slides/#87 https://beamilz.com/talks/pt/2021-github-actions-gyn/

Let’s practice it!

TODO! Adapt examples from:

https://github.com/curso-r/202203-oficina-dsp/tree/main/oficinas/29-06-2022-automatizacao

  • Quando começar a escrever códigos em R, fazer no RStudio.

Presentation at rstudio::conf(2022) :

https://beamilz.com/talks/en/2022-rstudio-conf/

More examples…

https://beamilz.com/series-gha.html

Thanks!